/*
* Copyright© 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.netty.common.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Description: netty常量
 *
 * @author YangGuang
 * @since: 1.0
 * Create Date Time: 2018/8/9 21:13
 * Update Date Time:
 */
@Component
@ConfigurationProperties(prefix = "netty")
public class NettyConstant {

    private int readTime;
    private int writeTime;
    private int readAndWriteTime;
    private int port;

    public int getReadTime() {
        return readTime;
    }

    public void setReadTime(int readTime) {
        this.readTime = readTime;
    }

    public int getWriteTime() {
        return writeTime;
    }

    public void setWriteTime(int writeTime) {
        this.writeTime = writeTime;
    }

    public int getReadAndWriteTime() {
        return readAndWriteTime;
    }

    public void setReadAndWriteTime(int readAndWriteTime) {
        this.readAndWriteTime = readAndWriteTime;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
